package cn.kgc.day03.dao.impl;

import cn.kgc.day03.dao.StudentDao;
import cn.kgc.day03.entity.Student;

import java.util.Arrays;
import java.util.List;

/**
 * @author 课工场
 * @date 2024/10/10
 * @description
 */
public class StudentDaoImpl implements StudentDao {

    @Override
    public List<Student> studentList() {

        // TODO  通过jdbc查询数据库 实现学生信息列表的查询
        Student student = new Student();
        student.setId(1);
        student.setName("lisi");
        student.setAge(20);
        List<Student> students = Arrays.asList(student, student, student);

        return students;
    }
}
